package com.zshan.clinic.database.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StockDrugProfileExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public StockDrugProfileExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDrugIdIsNull() {
            addCriterion("drug_id is null");
            return (Criteria) this;
        }

        public Criteria andDrugIdIsNotNull() {
            addCriterion("drug_id is not null");
            return (Criteria) this;
        }

        public Criteria andDrugIdEqualTo(Long value) {
            addCriterion("drug_id =", value, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdNotEqualTo(Long value) {
            addCriterion("drug_id <>", value, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdGreaterThan(Long value) {
            addCriterion("drug_id >", value, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdGreaterThanOrEqualTo(Long value) {
            addCriterion("drug_id >=", value, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdLessThan(Long value) {
            addCriterion("drug_id <", value, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdLessThanOrEqualTo(Long value) {
            addCriterion("drug_id <=", value, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdIn(List<Long> values) {
            addCriterion("drug_id in", values, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdNotIn(List<Long> values) {
            addCriterion("drug_id not in", values, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdBetween(Long value1, Long value2) {
            addCriterion("drug_id between", value1, value2, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugIdNotBetween(Long value1, Long value2) {
            addCriterion("drug_id not between", value1, value2, "drugId");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryIsNull() {
            addCriterion("drug_category is null");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryIsNotNull() {
            addCriterion("drug_category is not null");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryEqualTo(String value) {
            addCriterion("drug_category =", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryNotEqualTo(String value) {
            addCriterion("drug_category <>", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryGreaterThan(String value) {
            addCriterion("drug_category >", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("drug_category >=", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryLessThan(String value) {
            addCriterion("drug_category <", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryLessThanOrEqualTo(String value) {
            addCriterion("drug_category <=", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryLike(String value) {
            addCriterion("drug_category like", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryNotLike(String value) {
            addCriterion("drug_category not like", value, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryIn(List<String> values) {
            addCriterion("drug_category in", values, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryNotIn(List<String> values) {
            addCriterion("drug_category not in", values, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryBetween(String value1, String value2) {
            addCriterion("drug_category between", value1, value2, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryNotBetween(String value1, String value2) {
            addCriterion("drug_category not between", value1, value2, "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugNameIsNull() {
            addCriterion("drug_name is null");
            return (Criteria) this;
        }

        public Criteria andDrugNameIsNotNull() {
            addCriterion("drug_name is not null");
            return (Criteria) this;
        }

        public Criteria andDrugNameEqualTo(String value) {
            addCriterion("drug_name =", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameNotEqualTo(String value) {
            addCriterion("drug_name <>", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameGreaterThan(String value) {
            addCriterion("drug_name >", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameGreaterThanOrEqualTo(String value) {
            addCriterion("drug_name >=", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameLessThan(String value) {
            addCriterion("drug_name <", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameLessThanOrEqualTo(String value) {
            addCriterion("drug_name <=", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameLike(String value) {
            addCriterion("drug_name like", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameNotLike(String value) {
            addCriterion("drug_name not like", value, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameIn(List<String> values) {
            addCriterion("drug_name in", values, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameNotIn(List<String> values) {
            addCriterion("drug_name not in", values, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameBetween(String value1, String value2) {
            addCriterion("drug_name between", value1, value2, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugNameNotBetween(String value1, String value2) {
            addCriterion("drug_name not between", value1, value2, "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinIsNull() {
            addCriterion("drug_pinyin is null");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinIsNotNull() {
            addCriterion("drug_pinyin is not null");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinEqualTo(String value) {
            addCriterion("drug_pinyin =", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinNotEqualTo(String value) {
            addCriterion("drug_pinyin <>", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinGreaterThan(String value) {
            addCriterion("drug_pinyin >", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinGreaterThanOrEqualTo(String value) {
            addCriterion("drug_pinyin >=", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinLessThan(String value) {
            addCriterion("drug_pinyin <", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinLessThanOrEqualTo(String value) {
            addCriterion("drug_pinyin <=", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinLike(String value) {
            addCriterion("drug_pinyin like", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinNotLike(String value) {
            addCriterion("drug_pinyin not like", value, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinIn(List<String> values) {
            addCriterion("drug_pinyin in", values, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinNotIn(List<String> values) {
            addCriterion("drug_pinyin not in", values, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinBetween(String value1, String value2) {
            addCriterion("drug_pinyin between", value1, value2, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinNotBetween(String value1, String value2) {
            addCriterion("drug_pinyin not between", value1, value2, "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andGenericNameIsNull() {
            addCriterion("generic_name is null");
            return (Criteria) this;
        }

        public Criteria andGenericNameIsNotNull() {
            addCriterion("generic_name is not null");
            return (Criteria) this;
        }

        public Criteria andGenericNameEqualTo(String value) {
            addCriterion("generic_name =", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameNotEqualTo(String value) {
            addCriterion("generic_name <>", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameGreaterThan(String value) {
            addCriterion("generic_name >", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameGreaterThanOrEqualTo(String value) {
            addCriterion("generic_name >=", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameLessThan(String value) {
            addCriterion("generic_name <", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameLessThanOrEqualTo(String value) {
            addCriterion("generic_name <=", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameLike(String value) {
            addCriterion("generic_name like", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameNotLike(String value) {
            addCriterion("generic_name not like", value, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameIn(List<String> values) {
            addCriterion("generic_name in", values, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameNotIn(List<String> values) {
            addCriterion("generic_name not in", values, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameBetween(String value1, String value2) {
            addCriterion("generic_name between", value1, value2, "genericName");
            return (Criteria) this;
        }

        public Criteria andGenericNameNotBetween(String value1, String value2) {
            addCriterion("generic_name not between", value1, value2, "genericName");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberIsNull() {
            addCriterion("approval_number is null");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberIsNotNull() {
            addCriterion("approval_number is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberEqualTo(String value) {
            addCriterion("approval_number =", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberNotEqualTo(String value) {
            addCriterion("approval_number <>", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberGreaterThan(String value) {
            addCriterion("approval_number >", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberGreaterThanOrEqualTo(String value) {
            addCriterion("approval_number >=", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberLessThan(String value) {
            addCriterion("approval_number <", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberLessThanOrEqualTo(String value) {
            addCriterion("approval_number <=", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberLike(String value) {
            addCriterion("approval_number like", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberNotLike(String value) {
            addCriterion("approval_number not like", value, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberIn(List<String> values) {
            addCriterion("approval_number in", values, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberNotIn(List<String> values) {
            addCriterion("approval_number not in", values, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberBetween(String value1, String value2) {
            addCriterion("approval_number between", value1, value2, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberNotBetween(String value1, String value2) {
            addCriterion("approval_number not between", value1, value2, "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andDrugIngrIsNull() {
            addCriterion("drug_ingr is null");
            return (Criteria) this;
        }

        public Criteria andDrugIngrIsNotNull() {
            addCriterion("drug_ingr is not null");
            return (Criteria) this;
        }

        public Criteria andDrugIngrEqualTo(String value) {
            addCriterion("drug_ingr =", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNotEqualTo(String value) {
            addCriterion("drug_ingr <>", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrGreaterThan(String value) {
            addCriterion("drug_ingr >", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrGreaterThanOrEqualTo(String value) {
            addCriterion("drug_ingr >=", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrLessThan(String value) {
            addCriterion("drug_ingr <", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrLessThanOrEqualTo(String value) {
            addCriterion("drug_ingr <=", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrLike(String value) {
            addCriterion("drug_ingr like", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNotLike(String value) {
            addCriterion("drug_ingr not like", value, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrIn(List<String> values) {
            addCriterion("drug_ingr in", values, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNotIn(List<String> values) {
            addCriterion("drug_ingr not in", values, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrBetween(String value1, String value2) {
            addCriterion("drug_ingr between", value1, value2, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNotBetween(String value1, String value2) {
            addCriterion("drug_ingr not between", value1, value2, "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameIsNull() {
            addCriterion("drug_ingr_name is null");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameIsNotNull() {
            addCriterion("drug_ingr_name is not null");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameEqualTo(String value) {
            addCriterion("drug_ingr_name =", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameNotEqualTo(String value) {
            addCriterion("drug_ingr_name <>", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameGreaterThan(String value) {
            addCriterion("drug_ingr_name >", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameGreaterThanOrEqualTo(String value) {
            addCriterion("drug_ingr_name >=", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameLessThan(String value) {
            addCriterion("drug_ingr_name <", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameLessThanOrEqualTo(String value) {
            addCriterion("drug_ingr_name <=", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameLike(String value) {
            addCriterion("drug_ingr_name like", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameNotLike(String value) {
            addCriterion("drug_ingr_name not like", value, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameIn(List<String> values) {
            addCriterion("drug_ingr_name in", values, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameNotIn(List<String> values) {
            addCriterion("drug_ingr_name not in", values, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameBetween(String value1, String value2) {
            addCriterion("drug_ingr_name between", value1, value2, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameNotBetween(String value1, String value2) {
            addCriterion("drug_ingr_name not between", value1, value2, "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDosageFormIsNull() {
            addCriterion("dosage_form is null");
            return (Criteria) this;
        }

        public Criteria andDosageFormIsNotNull() {
            addCriterion("dosage_form is not null");
            return (Criteria) this;
        }

        public Criteria andDosageFormEqualTo(String value) {
            addCriterion("dosage_form =", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormNotEqualTo(String value) {
            addCriterion("dosage_form <>", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormGreaterThan(String value) {
            addCriterion("dosage_form >", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormGreaterThanOrEqualTo(String value) {
            addCriterion("dosage_form >=", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormLessThan(String value) {
            addCriterion("dosage_form <", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormLessThanOrEqualTo(String value) {
            addCriterion("dosage_form <=", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormLike(String value) {
            addCriterion("dosage_form like", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormNotLike(String value) {
            addCriterion("dosage_form not like", value, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormIn(List<String> values) {
            addCriterion("dosage_form in", values, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormNotIn(List<String> values) {
            addCriterion("dosage_form not in", values, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormBetween(String value1, String value2) {
            addCriterion("dosage_form between", value1, value2, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDosageFormNotBetween(String value1, String value2) {
            addCriterion("dosage_form not between", value1, value2, "dosageForm");
            return (Criteria) this;
        }

        public Criteria andMfrIdIsNull() {
            addCriterion("mfr_id is null");
            return (Criteria) this;
        }

        public Criteria andMfrIdIsNotNull() {
            addCriterion("mfr_id is not null");
            return (Criteria) this;
        }

        public Criteria andMfrIdEqualTo(Long value) {
            addCriterion("mfr_id =", value, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdNotEqualTo(Long value) {
            addCriterion("mfr_id <>", value, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdGreaterThan(Long value) {
            addCriterion("mfr_id >", value, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdGreaterThanOrEqualTo(Long value) {
            addCriterion("mfr_id >=", value, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdLessThan(Long value) {
            addCriterion("mfr_id <", value, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdLessThanOrEqualTo(Long value) {
            addCriterion("mfr_id <=", value, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdIn(List<Long> values) {
            addCriterion("mfr_id in", values, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdNotIn(List<Long> values) {
            addCriterion("mfr_id not in", values, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdBetween(Long value1, Long value2) {
            addCriterion("mfr_id between", value1, value2, "mfrId");
            return (Criteria) this;
        }

        public Criteria andMfrIdNotBetween(Long value1, Long value2) {
            addCriterion("mfr_id not between", value1, value2, "mfrId");
            return (Criteria) this;
        }

        public Criteria andDrugDosageIsNull() {
            addCriterion("drug_dosage is null");
            return (Criteria) this;
        }

        public Criteria andDrugDosageIsNotNull() {
            addCriterion("drug_dosage is not null");
            return (Criteria) this;
        }

        public Criteria andDrugDosageEqualTo(Integer value) {
            addCriterion("drug_dosage =", value, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageNotEqualTo(Integer value) {
            addCriterion("drug_dosage <>", value, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageGreaterThan(Integer value) {
            addCriterion("drug_dosage >", value, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageGreaterThanOrEqualTo(Integer value) {
            addCriterion("drug_dosage >=", value, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageLessThan(Integer value) {
            addCriterion("drug_dosage <", value, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageLessThanOrEqualTo(Integer value) {
            addCriterion("drug_dosage <=", value, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageIn(List<Integer> values) {
            addCriterion("drug_dosage in", values, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageNotIn(List<Integer> values) {
            addCriterion("drug_dosage not in", values, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageBetween(Integer value1, Integer value2) {
            addCriterion("drug_dosage between", value1, value2, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageNotBetween(Integer value1, Integer value2) {
            addCriterion("drug_dosage not between", value1, value2, "drugDosage");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitIsNull() {
            addCriterion("drug_dosage_unit is null");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitIsNotNull() {
            addCriterion("drug_dosage_unit is not null");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitEqualTo(String value) {
            addCriterion("drug_dosage_unit =", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitNotEqualTo(String value) {
            addCriterion("drug_dosage_unit <>", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitGreaterThan(String value) {
            addCriterion("drug_dosage_unit >", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitGreaterThanOrEqualTo(String value) {
            addCriterion("drug_dosage_unit >=", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitLessThan(String value) {
            addCriterion("drug_dosage_unit <", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitLessThanOrEqualTo(String value) {
            addCriterion("drug_dosage_unit <=", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitLike(String value) {
            addCriterion("drug_dosage_unit like", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitNotLike(String value) {
            addCriterion("drug_dosage_unit not like", value, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitIn(List<String> values) {
            addCriterion("drug_dosage_unit in", values, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitNotIn(List<String> values) {
            addCriterion("drug_dosage_unit not in", values, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitBetween(String value1, String value2) {
            addCriterion("drug_dosage_unit between", value1, value2, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitNotBetween(String value1, String value2) {
            addCriterion("drug_dosage_unit not between", value1, value2, "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextIsNull() {
            addCriterion("drug_dosage_unit_text is null");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextIsNotNull() {
            addCriterion("drug_dosage_unit_text is not null");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextEqualTo(String value) {
            addCriterion("drug_dosage_unit_text =", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextNotEqualTo(String value) {
            addCriterion("drug_dosage_unit_text <>", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextGreaterThan(String value) {
            addCriterion("drug_dosage_unit_text >", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextGreaterThanOrEqualTo(String value) {
            addCriterion("drug_dosage_unit_text >=", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextLessThan(String value) {
            addCriterion("drug_dosage_unit_text <", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextLessThanOrEqualTo(String value) {
            addCriterion("drug_dosage_unit_text <=", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextLike(String value) {
            addCriterion("drug_dosage_unit_text like", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextNotLike(String value) {
            addCriterion("drug_dosage_unit_text not like", value, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextIn(List<String> values) {
            addCriterion("drug_dosage_unit_text in", values, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextNotIn(List<String> values) {
            addCriterion("drug_dosage_unit_text not in", values, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextBetween(String value1, String value2) {
            addCriterion("drug_dosage_unit_text between", value1, value2, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextNotBetween(String value1, String value2) {
            addCriterion("drug_dosage_unit_text not between", value1, value2, "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyIsNull() {
            addCriterion("min_pack_qty is null");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyIsNotNull() {
            addCriterion("min_pack_qty is not null");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyEqualTo(Integer value) {
            addCriterion("min_pack_qty =", value, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyNotEqualTo(Integer value) {
            addCriterion("min_pack_qty <>", value, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyGreaterThan(Integer value) {
            addCriterion("min_pack_qty >", value, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyGreaterThanOrEqualTo(Integer value) {
            addCriterion("min_pack_qty >=", value, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyLessThan(Integer value) {
            addCriterion("min_pack_qty <", value, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyLessThanOrEqualTo(Integer value) {
            addCriterion("min_pack_qty <=", value, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyIn(List<Integer> values) {
            addCriterion("min_pack_qty in", values, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyNotIn(List<Integer> values) {
            addCriterion("min_pack_qty not in", values, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyBetween(Integer value1, Integer value2) {
            addCriterion("min_pack_qty between", value1, value2, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackQtyNotBetween(Integer value1, Integer value2) {
            addCriterion("min_pack_qty not between", value1, value2, "minPackQty");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitIsNull() {
            addCriterion("min_pack_unit is null");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitIsNotNull() {
            addCriterion("min_pack_unit is not null");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitEqualTo(String value) {
            addCriterion("min_pack_unit =", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitNotEqualTo(String value) {
            addCriterion("min_pack_unit <>", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitGreaterThan(String value) {
            addCriterion("min_pack_unit >", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitGreaterThanOrEqualTo(String value) {
            addCriterion("min_pack_unit >=", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitLessThan(String value) {
            addCriterion("min_pack_unit <", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitLessThanOrEqualTo(String value) {
            addCriterion("min_pack_unit <=", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitLike(String value) {
            addCriterion("min_pack_unit like", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitNotLike(String value) {
            addCriterion("min_pack_unit not like", value, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitIn(List<String> values) {
            addCriterion("min_pack_unit in", values, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitNotIn(List<String> values) {
            addCriterion("min_pack_unit not in", values, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitBetween(String value1, String value2) {
            addCriterion("min_pack_unit between", value1, value2, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitNotBetween(String value1, String value2) {
            addCriterion("min_pack_unit not between", value1, value2, "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextIsNull() {
            addCriterion("min_pack_unit_text is null");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextIsNotNull() {
            addCriterion("min_pack_unit_text is not null");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextEqualTo(String value) {
            addCriterion("min_pack_unit_text =", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextNotEqualTo(String value) {
            addCriterion("min_pack_unit_text <>", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextGreaterThan(String value) {
            addCriterion("min_pack_unit_text >", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextGreaterThanOrEqualTo(String value) {
            addCriterion("min_pack_unit_text >=", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextLessThan(String value) {
            addCriterion("min_pack_unit_text <", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextLessThanOrEqualTo(String value) {
            addCriterion("min_pack_unit_text <=", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextLike(String value) {
            addCriterion("min_pack_unit_text like", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextNotLike(String value) {
            addCriterion("min_pack_unit_text not like", value, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextIn(List<String> values) {
            addCriterion("min_pack_unit_text in", values, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextNotIn(List<String> values) {
            addCriterion("min_pack_unit_text not in", values, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextBetween(String value1, String value2) {
            addCriterion("min_pack_unit_text between", value1, value2, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextNotBetween(String value1, String value2) {
            addCriterion("min_pack_unit_text not between", value1, value2, "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitIsNull() {
            addCriterion("pack_unit is null");
            return (Criteria) this;
        }

        public Criteria andPackUnitIsNotNull() {
            addCriterion("pack_unit is not null");
            return (Criteria) this;
        }

        public Criteria andPackUnitEqualTo(String value) {
            addCriterion("pack_unit =", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitNotEqualTo(String value) {
            addCriterion("pack_unit <>", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitGreaterThan(String value) {
            addCriterion("pack_unit >", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitGreaterThanOrEqualTo(String value) {
            addCriterion("pack_unit >=", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitLessThan(String value) {
            addCriterion("pack_unit <", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitLessThanOrEqualTo(String value) {
            addCriterion("pack_unit <=", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitLike(String value) {
            addCriterion("pack_unit like", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitNotLike(String value) {
            addCriterion("pack_unit not like", value, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitIn(List<String> values) {
            addCriterion("pack_unit in", values, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitNotIn(List<String> values) {
            addCriterion("pack_unit not in", values, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitBetween(String value1, String value2) {
            addCriterion("pack_unit between", value1, value2, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitNotBetween(String value1, String value2) {
            addCriterion("pack_unit not between", value1, value2, "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextIsNull() {
            addCriterion("pack_unit_text is null");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextIsNotNull() {
            addCriterion("pack_unit_text is not null");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextEqualTo(String value) {
            addCriterion("pack_unit_text =", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextNotEqualTo(String value) {
            addCriterion("pack_unit_text <>", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextGreaterThan(String value) {
            addCriterion("pack_unit_text >", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextGreaterThanOrEqualTo(String value) {
            addCriterion("pack_unit_text >=", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextLessThan(String value) {
            addCriterion("pack_unit_text <", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextLessThanOrEqualTo(String value) {
            addCriterion("pack_unit_text <=", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextLike(String value) {
            addCriterion("pack_unit_text like", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextNotLike(String value) {
            addCriterion("pack_unit_text not like", value, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextIn(List<String> values) {
            addCriterion("pack_unit_text in", values, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextNotIn(List<String> values) {
            addCriterion("pack_unit_text not in", values, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextBetween(String value1, String value2) {
            addCriterion("pack_unit_text between", value1, value2, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextNotBetween(String value1, String value2) {
            addCriterion("pack_unit_text not between", value1, value2, "packUnitText");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Integer value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Integer value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Integer value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Integer value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Integer value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Integer> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Integer> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Integer value1, Integer value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Integer value1, Integer value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andIsSplitIsNull() {
            addCriterion("is_split is null");
            return (Criteria) this;
        }

        public Criteria andIsSplitIsNotNull() {
            addCriterion("is_split is not null");
            return (Criteria) this;
        }

        public Criteria andIsSplitEqualTo(String value) {
            addCriterion("is_split =", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitNotEqualTo(String value) {
            addCriterion("is_split <>", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitGreaterThan(String value) {
            addCriterion("is_split >", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitGreaterThanOrEqualTo(String value) {
            addCriterion("is_split >=", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitLessThan(String value) {
            addCriterion("is_split <", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitLessThanOrEqualTo(String value) {
            addCriterion("is_split <=", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitLike(String value) {
            addCriterion("is_split like", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitNotLike(String value) {
            addCriterion("is_split not like", value, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitIn(List<String> values) {
            addCriterion("is_split in", values, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitNotIn(List<String> values) {
            addCriterion("is_split not in", values, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitBetween(String value1, String value2) {
            addCriterion("is_split between", value1, value2, "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsSplitNotBetween(String value1, String value2) {
            addCriterion("is_split not between", value1, value2, "isSplit");
            return (Criteria) this;
        }

        public Criteria andSplitPriceIsNull() {
            addCriterion("split_price is null");
            return (Criteria) this;
        }

        public Criteria andSplitPriceIsNotNull() {
            addCriterion("split_price is not null");
            return (Criteria) this;
        }

        public Criteria andSplitPriceEqualTo(Integer value) {
            addCriterion("split_price =", value, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceNotEqualTo(Integer value) {
            addCriterion("split_price <>", value, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceGreaterThan(Integer value) {
            addCriterion("split_price >", value, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("split_price >=", value, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceLessThan(Integer value) {
            addCriterion("split_price <", value, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceLessThanOrEqualTo(Integer value) {
            addCriterion("split_price <=", value, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceIn(List<Integer> values) {
            addCriterion("split_price in", values, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceNotIn(List<Integer> values) {
            addCriterion("split_price not in", values, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceBetween(Integer value1, Integer value2) {
            addCriterion("split_price between", value1, value2, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andSplitPriceNotBetween(Integer value1, Integer value2) {
            addCriterion("split_price not between", value1, value2, "splitPrice");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitIsNull() {
            addCriterion("is_min_split is null");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitIsNotNull() {
            addCriterion("is_min_split is not null");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitEqualTo(String value) {
            addCriterion("is_min_split =", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitNotEqualTo(String value) {
            addCriterion("is_min_split <>", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitGreaterThan(String value) {
            addCriterion("is_min_split >", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitGreaterThanOrEqualTo(String value) {
            addCriterion("is_min_split >=", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitLessThan(String value) {
            addCriterion("is_min_split <", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitLessThanOrEqualTo(String value) {
            addCriterion("is_min_split <=", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitLike(String value) {
            addCriterion("is_min_split like", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitNotLike(String value) {
            addCriterion("is_min_split not like", value, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitIn(List<String> values) {
            addCriterion("is_min_split in", values, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitNotIn(List<String> values) {
            addCriterion("is_min_split not in", values, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitBetween(String value1, String value2) {
            addCriterion("is_min_split between", value1, value2, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitNotBetween(String value1, String value2) {
            addCriterion("is_min_split not between", value1, value2, "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyIsNull() {
            addCriterion("stock_warning_qty is null");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyIsNotNull() {
            addCriterion("stock_warning_qty is not null");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyEqualTo(Integer value) {
            addCriterion("stock_warning_qty =", value, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyNotEqualTo(Integer value) {
            addCriterion("stock_warning_qty <>", value, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyGreaterThan(Integer value) {
            addCriterion("stock_warning_qty >", value, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyGreaterThanOrEqualTo(Integer value) {
            addCriterion("stock_warning_qty >=", value, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyLessThan(Integer value) {
            addCriterion("stock_warning_qty <", value, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyLessThanOrEqualTo(Integer value) {
            addCriterion("stock_warning_qty <=", value, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyIn(List<Integer> values) {
            addCriterion("stock_warning_qty in", values, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyNotIn(List<Integer> values) {
            addCriterion("stock_warning_qty not in", values, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyBetween(Integer value1, Integer value2) {
            addCriterion("stock_warning_qty between", value1, value2, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andStockWarningQtyNotBetween(Integer value1, Integer value2) {
            addCriterion("stock_warning_qty not between", value1, value2, "stockWarningQty");
            return (Criteria) this;
        }

        public Criteria andConflictsIsNull() {
            addCriterion("conflicts is null");
            return (Criteria) this;
        }

        public Criteria andConflictsIsNotNull() {
            addCriterion("conflicts is not null");
            return (Criteria) this;
        }

        public Criteria andConflictsEqualTo(String value) {
            addCriterion("conflicts =", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsNotEqualTo(String value) {
            addCriterion("conflicts <>", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsGreaterThan(String value) {
            addCriterion("conflicts >", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsGreaterThanOrEqualTo(String value) {
            addCriterion("conflicts >=", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsLessThan(String value) {
            addCriterion("conflicts <", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsLessThanOrEqualTo(String value) {
            addCriterion("conflicts <=", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsLike(String value) {
            addCriterion("conflicts like", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsNotLike(String value) {
            addCriterion("conflicts not like", value, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsIn(List<String> values) {
            addCriterion("conflicts in", values, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsNotIn(List<String> values) {
            addCriterion("conflicts not in", values, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsBetween(String value1, String value2) {
            addCriterion("conflicts between", value1, value2, "conflicts");
            return (Criteria) this;
        }

        public Criteria andConflictsNotBetween(String value1, String value2) {
            addCriterion("conflicts not between", value1, value2, "conflicts");
            return (Criteria) this;
        }

        public Criteria andRecomsIsNull() {
            addCriterion("recoms is null");
            return (Criteria) this;
        }

        public Criteria andRecomsIsNotNull() {
            addCriterion("recoms is not null");
            return (Criteria) this;
        }

        public Criteria andRecomsEqualTo(String value) {
            addCriterion("recoms =", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsNotEqualTo(String value) {
            addCriterion("recoms <>", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsGreaterThan(String value) {
            addCriterion("recoms >", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsGreaterThanOrEqualTo(String value) {
            addCriterion("recoms >=", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsLessThan(String value) {
            addCriterion("recoms <", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsLessThanOrEqualTo(String value) {
            addCriterion("recoms <=", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsLike(String value) {
            addCriterion("recoms like", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsNotLike(String value) {
            addCriterion("recoms not like", value, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsIn(List<String> values) {
            addCriterion("recoms in", values, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsNotIn(List<String> values) {
            addCriterion("recoms not in", values, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsBetween(String value1, String value2) {
            addCriterion("recoms between", value1, value2, "recoms");
            return (Criteria) this;
        }

        public Criteria andRecomsNotBetween(String value1, String value2) {
            addCriterion("recoms not between", value1, value2, "recoms");
            return (Criteria) this;
        }

        public Criteria andInstrsIsNull() {
            addCriterion("instrs is null");
            return (Criteria) this;
        }

        public Criteria andInstrsIsNotNull() {
            addCriterion("instrs is not null");
            return (Criteria) this;
        }

        public Criteria andInstrsEqualTo(String value) {
            addCriterion("instrs =", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsNotEqualTo(String value) {
            addCriterion("instrs <>", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsGreaterThan(String value) {
            addCriterion("instrs >", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsGreaterThanOrEqualTo(String value) {
            addCriterion("instrs >=", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsLessThan(String value) {
            addCriterion("instrs <", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsLessThanOrEqualTo(String value) {
            addCriterion("instrs <=", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsLike(String value) {
            addCriterion("instrs like", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsNotLike(String value) {
            addCriterion("instrs not like", value, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsIn(List<String> values) {
            addCriterion("instrs in", values, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsNotIn(List<String> values) {
            addCriterion("instrs not in", values, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsBetween(String value1, String value2) {
            addCriterion("instrs between", value1, value2, "instrs");
            return (Criteria) this;
        }

        public Criteria andInstrsNotBetween(String value1, String value2) {
            addCriterion("instrs not between", value1, value2, "instrs");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNull() {
            addCriterion("clinic_id is null");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNotNull() {
            addCriterion("clinic_id is not null");
            return (Criteria) this;
        }

        public Criteria andClinicIdEqualTo(Long value) {
            addCriterion("clinic_id =", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotEqualTo(Long value) {
            addCriterion("clinic_id <>", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThan(Long value) {
            addCriterion("clinic_id >", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("clinic_id >=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThan(Long value) {
            addCriterion("clinic_id <", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThanOrEqualTo(Long value) {
            addCriterion("clinic_id <=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdIn(List<Long> values) {
            addCriterion("clinic_id in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotIn(List<Long> values) {
            addCriterion("clinic_id not in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdBetween(Long value1, Long value2) {
            addCriterion("clinic_id between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotBetween(Long value1, Long value2) {
            addCriterion("clinic_id not between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andIsEnabledIsNull() {
            addCriterion("is_enabled is null");
            return (Criteria) this;
        }

        public Criteria andIsEnabledIsNotNull() {
            addCriterion("is_enabled is not null");
            return (Criteria) this;
        }

        public Criteria andIsEnabledEqualTo(String value) {
            addCriterion("is_enabled =", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotEqualTo(String value) {
            addCriterion("is_enabled <>", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledGreaterThan(String value) {
            addCriterion("is_enabled >", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledGreaterThanOrEqualTo(String value) {
            addCriterion("is_enabled >=", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLessThan(String value) {
            addCriterion("is_enabled <", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLessThanOrEqualTo(String value) {
            addCriterion("is_enabled <=", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLike(String value) {
            addCriterion("is_enabled like", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotLike(String value) {
            addCriterion("is_enabled not like", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledIn(List<String> values) {
            addCriterion("is_enabled in", values, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotIn(List<String> values) {
            addCriterion("is_enabled not in", values, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledBetween(String value1, String value2) {
            addCriterion("is_enabled between", value1, value2, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotBetween(String value1, String value2) {
            addCriterion("is_enabled not between", value1, value2, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(String value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(String value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(String value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(String value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(String value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(String value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLike(String value) {
            addCriterion("is_delete like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotLike(String value) {
            addCriterion("is_delete not like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<String> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<String> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(String value1, String value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(String value1, String value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Long value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Long value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Long value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Long value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Long value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Long> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Long> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Long value1, Long value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Long value1, Long value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("create_by like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("create_by not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNull() {
            addCriterion("update_user_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNotNull() {
            addCriterion("update_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdEqualTo(Long value) {
            addCriterion("update_user_id =", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotEqualTo(Long value) {
            addCriterion("update_user_id <>", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThan(Long value) {
            addCriterion("update_user_id >", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("update_user_id >=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThan(Long value) {
            addCriterion("update_user_id <", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThanOrEqualTo(Long value) {
            addCriterion("update_user_id <=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIn(List<Long> values) {
            addCriterion("update_user_id in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotIn(List<Long> values) {
            addCriterion("update_user_id not in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdBetween(Long value1, Long value2) {
            addCriterion("update_user_id between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotBetween(Long value1, Long value2) {
            addCriterion("update_user_id not between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(String value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(String value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(String value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(String value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLike(String value) {
            addCriterion("update_by like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotLike(String value) {
            addCriterion("update_by not like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<String> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<String> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(String value1, String value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andDrugCategoryLikeInsensitive(String value) {
            addCriterion("upper(drug_category) like", value.toUpperCase(), "drugCategory");
            return (Criteria) this;
        }

        public Criteria andDrugNameLikeInsensitive(String value) {
            addCriterion("upper(drug_name) like", value.toUpperCase(), "drugName");
            return (Criteria) this;
        }

        public Criteria andDrugPinyinLikeInsensitive(String value) {
            addCriterion("upper(drug_pinyin) like", value.toUpperCase(), "drugPinyin");
            return (Criteria) this;
        }

        public Criteria andGenericNameLikeInsensitive(String value) {
            addCriterion("upper(generic_name) like", value.toUpperCase(), "genericName");
            return (Criteria) this;
        }

        public Criteria andApprovalNumberLikeInsensitive(String value) {
            addCriterion("upper(approval_number) like", value.toUpperCase(), "approvalNumber");
            return (Criteria) this;
        }

        public Criteria andDrugIngrLikeInsensitive(String value) {
            addCriterion("upper(drug_ingr) like", value.toUpperCase(), "drugIngr");
            return (Criteria) this;
        }

        public Criteria andDrugIngrNameLikeInsensitive(String value) {
            addCriterion("upper(drug_ingr_name) like", value.toUpperCase(), "drugIngrName");
            return (Criteria) this;
        }

        public Criteria andDosageFormLikeInsensitive(String value) {
            addCriterion("upper(dosage_form) like", value.toUpperCase(), "dosageForm");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitLikeInsensitive(String value) {
            addCriterion("upper(drug_dosage_unit) like", value.toUpperCase(), "drugDosageUnit");
            return (Criteria) this;
        }

        public Criteria andDrugDosageUnitTextLikeInsensitive(String value) {
            addCriterion("upper(drug_dosage_unit_text) like", value.toUpperCase(), "drugDosageUnitText");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitLikeInsensitive(String value) {
            addCriterion("upper(min_pack_unit) like", value.toUpperCase(), "minPackUnit");
            return (Criteria) this;
        }

        public Criteria andMinPackUnitTextLikeInsensitive(String value) {
            addCriterion("upper(min_pack_unit_text) like", value.toUpperCase(), "minPackUnitText");
            return (Criteria) this;
        }

        public Criteria andPackUnitLikeInsensitive(String value) {
            addCriterion("upper(pack_unit) like", value.toUpperCase(), "packUnit");
            return (Criteria) this;
        }

        public Criteria andPackUnitTextLikeInsensitive(String value) {
            addCriterion("upper(pack_unit_text) like", value.toUpperCase(), "packUnitText");
            return (Criteria) this;
        }

        public Criteria andIsSplitLikeInsensitive(String value) {
            addCriterion("upper(is_split) like", value.toUpperCase(), "isSplit");
            return (Criteria) this;
        }

        public Criteria andIsMinSplitLikeInsensitive(String value) {
            addCriterion("upper(is_min_split) like", value.toUpperCase(), "isMinSplit");
            return (Criteria) this;
        }

        public Criteria andConflictsLikeInsensitive(String value) {
            addCriterion("upper(conflicts) like", value.toUpperCase(), "conflicts");
            return (Criteria) this;
        }

        public Criteria andRecomsLikeInsensitive(String value) {
            addCriterion("upper(recoms) like", value.toUpperCase(), "recoms");
            return (Criteria) this;
        }

        public Criteria andInstrsLikeInsensitive(String value) {
            addCriterion("upper(instrs) like", value.toUpperCase(), "instrs");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLikeInsensitive(String value) {
            addCriterion("upper(is_enabled) like", value.toUpperCase(), "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLikeInsensitive(String value) {
            addCriterion("upper(is_delete) like", value.toUpperCase(), "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateByLikeInsensitive(String value) {
            addCriterion("upper(create_by) like", value.toUpperCase(), "createBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLikeInsensitive(String value) {
            addCriterion("upper(update_by) like", value.toUpperCase(), "updateBy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}